package com.taijihuabao.modules.service;

import com.taijihuabao.modules.entity.JournalContentMongoEntity;
import com.taijihuabao.modules.entity.JournalModelMongoEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author xiaoboyu
 * 模型mongo接口
 */
public interface JournalModelRepository extends MongoRepository<JournalModelMongoEntity, String> {

    /**
     * 根据code查询
     *
     * @param code
     * @return
     */
    JournalModelMongoEntity findByCode(String code);

}
